package com.aspose.cells.a.d;

import com.aspose.cells.Color;

public class zcm extends com.aspose.cells.b.a.d.za {
   public zcm(com.aspose.cells.b.a.d.zm var1) {
      super(var1);
   }

   public int[] a(int var1) throws Exception {
      int[] var2 = new int[var1];

      for(int var3 = 0; var3 < var1; ++var3) {
         var2[var3] = super.n();
      }

      return var2;
   }

   public String b(int var1) throws Exception {
      StringBuilder var2 = new StringBuilder(var1);

      for(int var3 = 0; var3 < var1; ++var3) {
         byte var4 = super.m();
         if (var4 == 0) {
            break;
         }

         var2.append((char)(var4 & 255));
      }

      return com.aspose.cells.b.a.zr.a(var2);
   }

   public com.aspose.cells.b.a.b.zo a() throws Exception {
      short var1 = super.n();
      short var2 = super.n();
      return new com.aspose.cells.b.a.b.zo((float)var2, (float)var1);
   }

   public com.aspose.cells.b.a.b.zt b() throws Exception {
      short var1 = super.n();
      short var2 = super.n();
      return new com.aspose.cells.b.a.b.zt((float)var2, (float)var1);
   }

   public com.aspose.cells.b.a.b.zq c() throws Exception {
      int[] var1 = this.a(4);
      return com.aspose.cells.b.a.b.zq.a((float)var1[3], (float)var1[2], (float)var1[1], (float)var1[0]);
   }

   public com.aspose.cells.b.a.b.zq d() throws Exception {
      int[] var1 = this.a(4);
      return new com.aspose.cells.b.a.b.zq((float)var1[3], (float)var1[2], (float)var1[1], (float)var1[0]);
   }

   public Color e() throws Exception {
      byte var1 = super.m();
      byte var2 = super.m();
      byte var3 = super.m();
      super.m();
      return Color.fromArgb(var1 & 255, var2 & 255, var3 & 255);
   }

   public com.aspose.cells.b.a.b.zo[] f() throws Exception {
      int var1 = super.p();
      return this.c(var1 & '\uffff');
   }

   public com.aspose.cells.b.a.b.zo[] c(int var1) throws Exception {
      com.aspose.cells.b.a.b.zo[] var2 = new com.aspose.cells.b.a.b.zo[var1];

      for(int var3 = 0; var3 < var1; ++var3) {
         var2[var3] = new com.aspose.cells.b.a.b.zo();
         var2[var3].a((float)super.n());
         var2[var3].b((float)super.n());
      }

      return var2;
   }

   public com.aspose.cells.b.a.b.zo[][] g() throws Exception {
      int var1 = super.p();
      com.aspose.cells.b.a.b.zo[][] var2 = new com.aspose.cells.b.a.b.zo[var1][];
      int[] var3 = this.a(var1 & '\uffff');

      for(int var4 = 0; var4 < (var1 & '\uffff'); ++var4) {
         var2[var4] = this.c(var3[var4]);
      }

      return var2;
   }
}
